import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
})
import store from './store'

import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import * as echarts from 'echarts'
import'@/assets/css/global.css'

const  app = createApp(App)
    .use(store)
    .use(router)
    .use(ElementPlus,{locale,size:'small'})
    .mount('#app')




app.echarts = echarts
